package com.diaohaiwen.framework.db.obj;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.core.keygen.KeyGenerators;

import java.time.LocalDateTime;

/**
 * @author 刁海文
 * @since 2023/6/27 21:31
 * @Remark 公用基础model 包含创建
 */

public class BaseCModel {
    /**
     * 主键ID
     */
    @Id(value = KeyGenerators.snowFlakeId, keyType = KeyType.Generator)
    private Long id;

    /**
     * 创建时间
     */
    @Column(value = "CREATED")
    private LocalDateTime createdTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }
}
